package xc.com.course.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhuolizhong
 * @since 2021-06-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Teachplan对象", description="")
@TableName("teachplan")
public class Teachplan implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    private String pname;

    private String parentid;

    @ApiModelProperty(value = "层级，分为1、2、3级")
    private String grade;

    @ApiModelProperty(value = "课程类型:1视频、2文档")
    private String ptype;

    @ApiModelProperty(value = "章节及课程时介绍")
    private String description;

    @ApiModelProperty(value = "时长，单位分钟")
    private Double timelength;

    @ApiModelProperty(value = "课程id")
    private String courseid;

    @ApiModelProperty(value = "排序字段")
    private String orderby;

    @ApiModelProperty(value = "状态：0未发布、1已发布")
    private String status;

    @ApiModelProperty(value = "是否试学")
    private String trylearn;

    @TableField(exist = false)
    @ApiModelProperty(value = "字节点")
    private  List<Teachplan> teachplans;
    @TableField(exist = false)
    @ApiModelProperty(value = "课程计划视频信息")
    private TeachplanMedia teachplanMedia;
}
